$(function(){
	$("#u14").mouseover(function(){
		$(this).css("cursor","pointer");
	}).click(function(){
		submitForm();
	});
});

function submitForm(){
	$("#u14").attr("disabled",true);
	var loginName = $("#u15_input").val();
	var password = $("#u16_input").val();
	if(loginName == "" || password == ""){
		alert("用户名和密码不可为空");
		return;
	}
	$.post("/login",{loginName:loginName,password:password},function(data){
		if(data.code == 200){
			window.location.href = "/home?stage=onShelf";
		}else{
			alert(data.msg);
		}
	});
}